home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / Macintosh Programmer’s Workshop / MPW 3.1 / MPW / Interfaces / CIncludes / SetJmp.h < prev    next >
Text File  |  1990-12-13  |  490b  |  32 lines

  1. /*
  2.    SetJmp.h
  3.  
  4.    Copyright Apple Computer, Inc.    1986-1988
  5.    All rights reserved.
  6.  */
  7.  
  8. #ifndef __SETJMP__
  9. #define __SETJMP__
  10.  
  11.  
  12. typedef int *jmp_buf[12];        /*    D2-D7,PC,A2-A4,A6,SP  */
  13.  
  14. #ifdef __safe_link
  15. extern "C" {
  16. #endif
  17.  
  18. /*
  19.  *    setjmp() must be defined as a macro, according to the ANSI standard.
  20.  *    It is equivalent to int setjmp(jmp_buf env).
  21.  */
  22.  
  23. int __setjmp(jmp_buf env);
  24. #define setjmp(env) __setjmp(env)
  25. void longjmp(jmp_buf, int);
  26.  
  27. #ifdef __safe_link
  28. }
  29. #endif
  30.  
  31. #endif __SETJMP__
  32.